package com.rxkj.entity.sys;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * 系统操作日志
 * by alex
 * 2022-4-6
 */
@ApiModel("操作日志实体类")
public class SysOprateLog implements Serializable {

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "用户id")
    private Integer uid;

    @ApiModelProperty(value = "用户名")
    private String uname;

    @ApiModelProperty(value = "组织、业主id")
    private Integer gid;

    @ApiModelProperty(value = "日志类型")
    private String logtype;

    @ApiModelProperty(value = "操作内容")
    private String opcontent;

    @ApiModelProperty(value = "ip")
    private String opip;

    @ApiModelProperty(value = "ip所在的")
    private String oplocation;

    @ApiModelProperty(value = "操作时间")
    private Date optime;

    @ApiModelProperty(value = "请求json")
    private String reqjson;

    @ApiModelProperty(value = "请求接口url")
    private String requrl;

    @ApiModelProperty(value = "接口相应数据")
    private String resplog;

    @ApiModelProperty(value = "备注")
    private String mark;

    public SysOprateLog() {
    }

    public SysOprateLog(Long id, Integer uid, String uname, Integer gid, String logtype, String opcontent, String opip, String oplocation, Date optime, String reqjson, String requrl, String resplog, String mark) {
        this.id = id;
        this.uid = uid;
        this.uname = uname;
        this.gid = gid;
        this.logtype = logtype;
        this.opcontent = opcontent;
        this.opip = opip;
        this.oplocation = oplocation;
        this.optime = optime;
        this.reqjson = reqjson;
        this.requrl = requrl;
        this.resplog = resplog;
        this.mark = mark;
    }

    public String getResplog() {
        return resplog;
    }

    public void setResplog(String resplog) {
        this.resplog = resplog;
    }

    public String getReqjson() {
        return reqjson;
    }

    public void setReqjson(String reqjson) {
        this.reqjson = reqjson;
    }

    public String getRequrl() {
        return requrl;
    }

    public void setRequrl(String requrl) {
        this.requrl = requrl;
    }

    public String getLogtype() {
        return logtype;
    }

    public void setLogtype(String logtype) {
        this.logtype = logtype;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public String getUname() {
        return uname;
    }

    public void setUname(String uname) {
        this.uname = uname;
    }

    public Integer getGid() {
        return gid;
    }

    public void setGid(Integer gid) {
        this.gid = gid;
    }

    public String getOpcontent() {
        return opcontent;
    }

    public void setOpcontent(String opcontent) {
        this.opcontent = opcontent;
    }

    public String getOpip() {
        return opip;
    }

    public void setOpip(String opip) {
        this.opip = opip;
    }

    public String getOplocation() {
        return oplocation;
    }

    public void setOplocation(String oplocation) {
        this.oplocation = oplocation;
    }

    public Date getOptime() {
        return optime;
    }

    public void setOptime(Date optime) {
        this.optime = optime;
    }

    public String getMark() {
        return mark;
    }

    public void setMark(String mark) {
        this.mark = mark;
    }

    @Override
    public String toString() {
        return "SysOprateLog{" +
                "id=" + id +
                ", uid=" + uid +
                ", uname='" + uname + '\'' +
                ", gid=" + gid +
                ", logtype='" + logtype + '\'' +
                ", opcontent='" + opcontent + '\'' +
                ", opip='" + opip + '\'' +
                ", oplocation='" + oplocation + '\'' +
                ", optime=" + optime +
                ", reqjson='" + reqjson + '\'' +
                ", requrl='" + requrl + '\'' +
                ", resplog='" + resplog + '\'' +
                ", mark='" + mark + '\'' +
                '}';
    }
}
